/*
 * @Descripttion: 
 * @Author: 银河以北
 * @Date: 2021-09-17 20:52:13
 * @LastEditors: 银河以北
 * @LastEditTime: 2021-10-05 13:54:26
 */
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Login',
    alias: '/login',
    meta: {
      title: '登录'
    },
    component: () => import('@/views/login/index.vue')
  },
  {
    path: '/chat',
    name: 'Chat',
    meta: {
      title: '即时通讯'
    },
    component: () => import('@/views/chat/index.vue')
  },
  {
    path: '/test',
    name: 'Test',
    meta: {
      title: '测试'
    },
    component: () => import('@/views/test/index.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
